package com.eascs.web.o2o.dc.dao;

import org.springframework.stereotype.Repository;

import com.eascs.web.o2o.dc.common.dao.BaseDevDao;

/**
 * 业务系统
 * 
 * @author ycz
 *
 */
@Repository
public class DcDao extends BaseDevDao {
	
	public boolean excuteSql(String sql, Object... params) {
		return super.execute(sql, params) > 0;
	}
	
	public boolean saveEntity(Object entity) {
		return jdbcSession.insert(entity)>0;
	}
	
	
	public boolean updateEntity(Object entity) {
		return jdbcSession.updateById(entity)>0;
	}
}
